package com.pks.datacenter.entity.api;

import lombok.Data;
import lombok.EqualsAndHashCode;

import com.pks.util.coder.database.DBField;
import com.pks.util.coder.database.DBQuery;
import com.pks.util.coder.database.DBTable;
import com.pks.web.mybatis.entity.BasicEntity;

@Data
@EqualsAndHashCode(callSuper = true)
@DBTable(tags = "接口展示字段" , index_normal = {"apiId"} )
public class ApiField extends BasicEntity {


	private static final long serialVersionUID = -707244112516116173L;

	
	@DBField(comment = "接口ID", nullable = false, length = 255)
	@DBQuery
	private Long apiId;
	
	@DBField(comment = "数据源ID")
	@DBQuery
	private Long dbId;
	
	@DBField(comment = "数据源字段ID", nullable = false)
	private Long dbFieldId;
	
	@DBField(comment = "字段名" , length = 255)
	private String fieldName;

	@DBField(comment = "字段中文名" , length = 255 )
	private String fieldChName;
	
	@DBField(comment = "展示别名")
	private String alias;
	
	@DBField(comment = "排序号（预留）")
	private Long orders;
	
	
}
